<div class="row">
	<form class="form-inline" method="post" action="?action=add">
		<div class="form-group">
			<label class="sr-only" for="os_name">Tên hệ đều hành</label>
			<input type="text" class="form-control" id="os_name" name="os_name"
				placeholder="Tên hệ đều hành">
		</div>
		<div class="form-group">
			<label class="sr-only" for="os_status">Trạng thái</label>
			<select class="form-control" id="os_status" name="os_status">
				<option value="1" >Kích hoạt</option>
				<option value="0">Không kích hoạt</option>
				
			</select>
		</div>
		<button type="submit" id="add-os-1" class="btn btn-success">Thêm</button>
	</form>
	<div id="message">
	</div>
</div>
<div class="row">
<form method="post" action="?action=delete">
    <table class="table">
        <thead>
        <tr>
            <th>ID</th>
            <th>Hệ đều hành</th>
            <th>Trạng thái</th>
            <th>Action</th>
        </tr>
        </thead>
        <tbody id="resultData">
            <?php foreach ($this->data as $item ){?>
            <tr>
                <td><?php echo $item['os_id']?></td>
                <td><?php echo $item['os_name']?></td>
                <td><?php echo $item['os_status']?></td>
                <td>
                    <button type="submit" value="<?php echo $item['os_id']?>" name="os_id"><i class="fa fa-times-circle"></i></button>
                    <button type="button" value="<?php echo $item['os_id']?>" class="os_edit"><i class="fa fa-pencil"></i></button>
                </td>
            </tr>    
            <?php }?>
            
        </tbody>
        
    </table>
</form>


<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>
</div>